import React from 'react';
import { Drawer, Timeline } from 'antd';
import './Appraise.css';

function Appraise(props) {
    const { title = '查看评价', onClose, open, data } = props
    return (
        <>
            <Drawer title={title} placement="right" onClose={onClose} closable={false} open={open} width={600} className="drawer">
                <h3>{data.name}/{data.className}</h3>
                <p>{data.Publisher}：{new Date(data.createTime).toLocaleString()}</p>
                <p>评价类型：{data.type}</p>
                <p>分值：{data.number}</p>
                <p>评价内容：{data.content}</p>
               
                
                <div>
                    {props.children}
                </div>
            </Drawer>
        </>
    );
}

export default Appraise;